# This snippet will echo the total linecount for a directory.

for file in `find . -type f`; do cat $file; done | wc -l